/*
 * @Description:文件接口
 */
import request from '@/utils/request'
export default {
    //上传文件
    upload(data) {
        return request({
            url: '/fish/public/files/upload',
            method: 'POST',
            headers: {
                'Content-Type': 'multipart/form-data'
            },
            data,
            timeout: 0,
        })
    },
    //下载文件
    download(fileId) {
        return request.get(`/fish/public/files/download?fileId=${fileId}`)
    }
};
